from django.contrib import admin

# Register your models here.
from .models import Question

# Register your models here.


class QuestionAdmin(admin.ModelAdmin):
    list_display = [
        "id",
        "title",
        "question",
        "question_type",
        "options",
        "correct_answers",
        "explanation",
    ]
    # 设置哪些字段可以点击进入编辑界面
    list_display_links = (
        "id",
        "title",
    )
    list_filter = (
        "id",
        "title",
        "question",
    )
admin.site.register(Question, QuestionAdmin)
